haptic5 2.2.0
Loading...
Searching...
No Matches
haptic5_t Struct Reference

Haptic 5 Click context object. More...

#include <haptic5.h>

Data Fields

digital_out_t trg
digital_out_t rst
digital_out_t dir
pwm_t pwm
i2c_master_t i2c
uint32_t pwm_freq
uint8_t slave_address

Detailed Description

Haptic 5 Click context object.

Context object definition of Haptic 5 Click driver.

Field Documentation

◆ dir

digital_out_t dir

Motor drive direction pin (PWM mode only - low:forward, high:reverse).

◆ i2c

i2c_master_t i2c

I2C driver object.

◆ pwm

pwm_t pwm

PWM driver object.

◆ pwm_freq

uint32_t pwm_freq

PWM frequency value.

◆ rst

digital_out_t rst

Reset pin (active low).

◆ slave_address

uint8_t slave_address

Device slave address (used for I2C driver).

◆ trg

digital_out_t trg

Trigger haptics pin (I2C mode only).


The documentation for this struct was generated from the following file: